package com.mudos.server;

public class MUDServerUtils {
	private static MUDServerUtils _instance;
	
	public static MUDServerUtils getInstance()
	{
		if (_instance == null)
			_instance = new MUDServerUtils();
		return _instance;
	}
	
	public static String getUserPath(String userName) throws MudServerException
	{
		if ( userName.length() >= 3 )
			return userName.substring(0, 1) +"/"+userName.substring(1, 2) + "/" + userName.substring(2, 3);
		throw new MudServerException("Nombre incorrecto");
		
	}
}
